package com.appgole.http;

import java.util.HashMap;
import java.util.Map;

public class ClientConfig {
    public static Map<String, Object> headers = new HashMap<String, Object>(5) {
        {
            put("Content-Type", "application/json");
            put("Accept-Encoding", "gzip, deflate");
            put("Accept-Language", "zh-CN,zh;q=0.9");
            put("Cache-Control", "max-age=0");
            put("Connection", "keep-alive");
            put("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36");
            put("Cookie", "gr_user_id=be5dcafd-df67-4d7c-a478-218ce801b4ad; grwng_uid=5041a561-bea1-4699-be44-a786c4638431; Hm_lvt_7f507866a71751ec897646c3e2977b48=1550210645,1551591516; Hm_lpvt_7f507866a71751ec897646c3e2977b48=1551593634; 8777ec7db41b2edd_gr_session_id=6fcc6627-a150-409a-9b6c-6e4e6a008fdf; 8777ec7db41b2edd_gr_session_id_6fcc6627-a150-409a-9b6c-6e4e6a008fdf=true");
            put("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8");
        }
    };


    public static Map<String, Object> httpClientParams = new HashMap<String, Object>(5) {
        {
            put("http.connection.timeout", 6000);
            put("http.socket.timeout", 6000);
            put("http.connection.manager.timeout", 6000);
            put("http.connection.timeout", 6000);
        }
    };


    /**
     * 服务器主机地址 域名或ip
     */
    public static String baseUri = "http://gank.io";

    /**
     * base路径
     */
    public static String basePath = "/api";


    /**
     * 代理开关
     */
    public static boolean enableProxy = false;

    /**
     * 代理主机
     */
    public static String proxyHost = "127.0.0.1";

    /**
     * 代理端口
     */
    public static Integer proxyPort = 8888;
}
